package com.heima.user.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.user.service.ApUserActivateService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api(value = "app端用户禁用激活api",tags = "app端用户禁用激活api")
@RestController
@RequestMapping("/api/v1/activate")

public class ApUserActivateController {
    @Autowired
    ApUserActivateService apUserActivateService;
    /**
     * 用户禁用激活
     * @param uuid
     * @return
     */
    @GetMapping("activateUser")
    public ResponseResult activateUser(@RequestParam("uuid")String uuid){
        return apUserActivateService.activate(uuid);
    }
}
